<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <c:if test="${msg!=null}">
        <script type="text/javascript">
            var msg = "${msg}"
            alert(msg);
        </script>
    </c:if>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
    <link rel="stylesheet" type="text/css" media="all" href="testJs/style.css">
    <link rel="stylesheet" type="text/css" media="all" href="testJs/mo.css">
    <script type="text/javascript" src="testJs/jquery.js "></script>
    <script type="text/javascript" src="testJs/touchslide.js "></script>
    <link rel="stylesheet" id="dashicons-css" href="testJs/dashicons.min.css" type="text/css" media="all">
    <link rel='stylesheet' id='admin-bar-css' href='testJs/admin-bar.min.css' type='text/css' media='all'/>
    <title>微博 - 别来碰我的关注</title>
    <script type="text/javascript" src="script/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="script/friend.js"></script>
    <script type="text/javascript" src="srcipt/profile.js"></script>

</head>
<body class="bg">
<!-- header开始-->
<%@include file="../header.jsp" %>
<!-- header结束-->
<div id="header" style="padding-top: 40px">
    <div class="wrapper">
        <div class="nav fl">
            <a href="javascript:;" class="nav-m"><i class="mo-menu"></i></a>
            <div class="logo fl">
                <h1><a href="http://localhost/wordpress" title="微博"><img src="images/logo.png"></a>
                </h1>
            </div>
        </div>
        <div class="tool fr">
            <a href="friend">微博</a>
            <a href="attenIndex">关注</a>
            <a href="fansIndex">粉丝</a>
            <a href="blankIndex?p=1">黑名单</a>
        </div>
    </div>
</div>
<!-- container 开始-->

<div class="content">
    <div class="wrapper">
        <div class="main fl">
            <div class="list w750 mt35">
                <h3 class="h3">
                    我共关注了 ${loginUser.attention} 人
                </h3>
                <!-- weibotwo 开始-->

                <c:forEach items="${weiboList}" var="weibo">
                    <div class="post-info">
                        <div class="pic fl">
                            <a target="_blank">
                                <c:if test="${weibo.mImage != 'null'}">

                                    <img src="${weibo.mImage}" id="${weibo.mId}"
                                         onclick="imgAct(${weibo.mId})" height="160px" width="230px"/>
                                </c:if>
                                <c:if test="${weibo.mImage == 'null'}">
                                    <img src="${weibo.user.images}" height="160px" width="230px"/>
                                </c:if>
                            </a>
                        </div>
                        <div class="post-content w490 fr">
                            <div class="post-artice">
                                <img src="${weibo.user.images}" width="50" height="50"/>
                                <span style="width:88%" class="content">
                                                <a href="userIndex?userId=${weibo.user.id}"
                                                   target="_blank">${weibo.user.nickName}</a><img
                                        src="icon/v.gif"
                                        width="11"
                                        height="10"
                                        align="middle"/><br>
                                            </span>
                                    ${weibo.mBody}
                            </div>
                            <div class="post-in">
                                <span>${weibo.publishTime}&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;</span>
                                <span id="like${weibo.mId}" onclick="like(${weibo.mId})"
                                      style="cursor:pointer">
                                    <c:if test="${weibo.b==false}">赞(${weibo.mLike})</c:if>
                                    <c:if test="${weibo.b==true}">已赞(${weibo.mLike})</c:if>
                                    &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
                                </span>
                                <span id="trans${weibo.mId}" onclick="trans(${weibo.mId})"
                                      style="cursor:pointer">转发(${weibo.mTranum})
                                    &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
                                </span>
                                <span id="coll${weibo.mId}" onclick="coll(${weibo.mId})"
                                      style="cursor:pointer">收藏</span>
                                <a class="fr" href="getComm?weiboId=${weibo.mId}&p=1&fy=0"
                                   target="_blank">more+</a>
                            </div>

                        </div>
                    </div>
                </c:forEach>


                <span style="float: right" id="userinfo">
                                <ul>
                                    <li align="right">
                                        <c:if test="${pageNum!=1}">
                                            <a href="friend?pageNum=${pageNum-1}"
                                               style="text-decoration:none">上一页</a>&nbsp; &nbsp;
                                        </c:if>
                                        第&nbsp; ${pageNum} &nbsp;页 &nbsp;&nbsp;
                                        <c:if test="${pageNum <totalPage+1}">
                                            <a href="friend?pageNum=${pageNum+1}" style="text-decoration:none">下一页</a>
                                        </c:if>
                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                        共 &nbsp; ${totalPage} &nbsp;页
                                    </li>
                                </ul>
                            </span>
                </td>
            </div>
        </div>
        <div class="sidebar w320 fr">
            <div id="localtime">
                <font>2019-04-26 18:27:30 星期五</font>
            </div>
            <jsp:include page="../userinfo.jsp"/>
        </div>
        <!-- container 结束-->
    </div>


        <!--footer开始-->
        <%@include file="../footer.jsp" %>
        <!--footer结束-->
    </div>
<script type="text/javascript" src=" testJs/highlight.js"></script>
<script type="text/javascript" src=" testJs/online.js"></script>
</body>
</html>